package com.data.common.util.jsonschema.validate;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import java.util.HashMap;
import java.util.Map;
import com.data.common.util.jsonschema.CommonProperty;
import com.data.modules.online.cgform.util.CgformUtil;
import com.data.modules.online.config.executor.DataBaseConst;

public class SwitchProperty extends CommonProperty {

    private String f45l;

    public SwitchProperty() {
    }

    public SwitchProperty(String key, String title, String extendStr) {
        this.f2b = DataBaseConst.f474i;
        this.f5e = CgformUtil.f238L;
        this.f1a = key;
        this.f6f = title;
        this.f45l = extendStr;
    }

    @Override
    public Map<String, Object> getPropertyJson() {
        HashMap hashMap = new HashMap();
        hashMap.put("key", getKey());
        JSONObject commonJson = getCommonJson();
        new JSONArray();
        if (this.f45l != null) {
            commonJson.put("extendOption", JSONArray.parseArray(this.f45l));
        }
        hashMap.put("prop", commonJson);
        return hashMap;
    }
}
